class TranscriptItem {
  String? text;
  bool? finish;
  int? duration = 0;
  int? offset = 0;
  String? speaker;
  int? code;

  TranscriptItem(
      {this.text,
      this.finish,
      this.duration,
      this.offset,
      this.speaker,
      this.code});

  TranscriptItem.fromJson(Map<String, dynamic> json) {
    text = json['text'];
    finish = json['finish'];
    duration = json['duration'];
    offset = json['offset'];
    speaker = json['speaker'];
    code = json['code'];
  }

  Map<String, dynamic> toJson() {
    final data = <String, dynamic>{};
    data['text'] = text;
    data['finish'] = finish;
    data['duration'] = duration;
    data['offset'] = offset;
    data['speaker'] = speaker;
    data['code'] = code;
    return data;
  }
}
